Gets an
ICollection containing the values in the
IDictionary.
Syntax
Example
Library/Library.Test/TestSynchronizedCollections.cs
C# | Copy Code |
---|
SynchronizedDictionary<string, string> test = new SynchronizedDictionary<string, string>(new Dictionary<string, string>());
test["a"] = "b";
string all = String.Join("", new List<string>(test.Values).ToArray());
Assert.AreEqual("b", all); |
VB.NET | Copy Code |
---|
Dim test As New SynchronizedDictionary(Of String, String)(New Dictionary(Of String, String)())
test("a") = "b"
Dim all As String = [String].Join("", New List(Of String)(test.Values).ToArray())
Assert.AreEqual("b", all) |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also